﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TransactionHistory.aspx.cs" Inherits="FYPHP.TransactionHistory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

<script type="text/javascript">    var num = 0; </script>

    <asp:Repeater ID="ItemList" runat="server" EnableViewState="False" 
        onitemcommand="ItemList_ItemCommand">
        <HeaderTemplate>
            <h2>
                Transaction History</h2>
<table cellpadding="5" cellspacing="5" width="722" border="1px solid #ffffff" align="center" style="border-collapse: collapse; border-color: #aaaaaa; text-align: center; margin-top: 5px">
 <tr style="background-color: #eee; font-weight: bold;"><td width="30px">No.</td><td>Reference No.</td><td>Seller</td><td>Total</td><td>Action</td></tr>       
                
            
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                  <script type="text/javascript">
                      num += 1; document.write(num);
                      </script>
                </td>
                <td style="text-align: left">       
                     <%#formatRef(DataBinder.Eval(Container.DataItem, "t_id" )) %>
                </td>
              <td width="100">
                  <%#DataBinder.Eval(Container.DataItem, "username" ) %>
                </td>
               <td width="100">
                     RM <%#DataBinder.Eval(Container.DataItem, "t_total" ) %>
                </td>
          <td width="120"><asp:Button ID="btnView" runat="server" Text="View Details" CommandName="View" CommandArgument='<%# Eval("t_id").ToString() %>' /></td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
